package cn.stylefeng.guns.sys.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangge
 * @since 2020-09-10
 */
@TableName("gcg_task")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Integer id;

    /**
     * 父id
     */
    @TableField("pid")
    private Integer pid;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 工程id
     */
    @TableField("project_id")
    private Integer projectId;

    /**
     * 说明
     */
    @TableField("note")
    private String note;

    /**
     * 角色id
     */
    @TableField("role_id")
    private Integer roleId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "Task{" +
        "id=" + id +
        ", pid=" + pid +
        ", name=" + name +
        ", projectId=" + projectId +
        ", note=" + note +
        ", roleId=" + roleId +
        "}";
    }
}
